<?php
/**
+-------------------------------------------------------------------------------------------------------
* GouGuOPEN [ 左手研发，右手开源，未来可期！]
+-------------------------------------------------------------------------------------------------------
* @Copyright (c) http://blog.gougucms.com All rights reserved.
+-------------------------------------------------------------------------------------------------------
* @Licensed 勾股系列相关开源系统，可免费使用，但并不是自由软件，未经授权许可，不能去除系统的相关版权信息
+-------------------------------------------------------------------------------------------------------
* @Author 勾股工作室 <hdm58@qq.com>
+-------------------------------------------------------------------------------------------------------
*/

namespace app\course\validate;
use think\Validate;
class CourseCheck extends Validate

{
    protected $rule = [
        'title'       => ['require'],
        'id'          => ['require'],
    ];

    protected $message = [
        'title.require'       => '课程标题不能为空',
        'id.require'          => '缺少更新条件',
    ];

    protected $scene = [
        'add'   => ['title'],
        'edit' => ['id','title']
    ];
}